package com.demo.entity;

import java.util.Date;

/**
 * resource: mybatis-config.xml
 * InputStream
 * SqlSessionFactory
 * SqlSession
 * 执行 SQL 语句
 */
public class Users {

    private Integer id; // 编号
    private String username; // 登录名
    private String password; // 密码
    private String nickname; // 昵称
    private Integer age; // 年龄
    private String gender; // 性别
    private String phone; // 电话
    private String email; // email
    private Date createTime; // 账号创建时间
    private Date updateTime; // 账号更新时间
    private Date lastLogin; // 账号最后登录时间
    private Integer userStatus; // 账号的状态：0-正常；1-锁定；2-删除
    private String remark; // 备注

    public Users () {}

    public Users (Integer id) {
        this.id = id;
    }

    public Users (
            String username,
            String password,
            String nickname,
            Integer age,
            String gender,
            String phone,
            String email,
            Date createTime,
            Date updateTime,
            Date lastLogin,
            Integer userStatus
    ) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.age = age;
        this.gender = gender;
        this.phone = phone;
        this.email = email;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.lastLogin = lastLogin;
        this.userStatus = userStatus;
    }

    public Users (
            Integer id,
            String username,
            String nickname,
            Integer age,
            String gender,
            String phone,
            String email,
            String remark,
            Date updateTime
    ) {
        this.id = id;
        this.username = username;
        this.nickname = nickname;
        this.age = age;
        this.gender = gender;
        this.phone = phone;
        this.email = email;
        this.remark = remark;
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
